﻿using SqlSugar;

namespace Zhaoxi.SqlSugar.Models
{
    [SugarTable("StudentInfo")]//当和数据库名称不一样可以设置表别名 指定表明
    public class StudentInfo
    {
        [SugarColumn(IsPrimaryKey = true)]//数据库是自增才配自增 
        public int Id { get; set; }

        [SugarColumn(ColumnName = "SchoolId", IsNullable = true)]
        public int? SchoolId { get; set; }

        [SugarColumn(ColumnName = "Name", IsNullable = true)]//数据库与实体不一样设置列名 
        public string? Name { get; set; }

        [SugarColumn(ColumnName = "CreateTime", IsNullable = true)]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool Isdeleted { get; set; }
    }
}